package com.lanyun.yebdemo.controller;

import com.lanyun.yebdemo.bean.ArticleContent;
import com.lanyun.yebdemo.service.IArticleContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ArticleContentController {
    @Autowired
    IArticleContentService articleContentService;

    @GetMapping("/articles/getcontent")
    public List<ArticleContent> getContents(int articleid){
          return articleContentService.getContents(articleid);
    }
}
